package com.humngyang.com.hmy.study.springtest;


import com.humngyang.com.hmy.study.springtest.textAop.CityService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;

@Configuration
@ComponentScan("com.humngyang.com.hmy.study.springtest")
@EnableAspectJAutoProxy
public class AppConfig {

    @Bean
    BService bService(){
        return new BService();
    }

    @Bean
    CService cService(){
        return new CService();
    }


    @Bean
    public CityService CityService(){
        return new CityService();
    }
}
